package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 保存口味信息(需要设置dishId)
     *
     * @param flavorList
     */
    void saveFlavoies(List<DishFlavor> flavorList);

    /**
     * 根据dishid删除口味
     *
     * @param dishId
     */
    void delDishByid(Long dishId);


    List<DishFlavor> findByDishId(Long id);

    void updateFlavoies(DishFlavor dishFlavor);
}
